package com.itxiaowu.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itxiaowu.dao.OrderSettingDao;
import com.itxiaowu.service.AdjustOrderSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = AdjustOrderSettingService.class)
@Transactional
public class AdjustOrderSettingServiceImpl implements AdjustOrderSettingService {
    @Autowired
    private OrderSettingDao orderSettingDao;
    /**
     * 根据条件删除数据
     *
     *
     */
    public void delete(String date) {
        //获取本月1号的时间
        //调用Dao提交参数，执行删除本月1号前的数据
        System.out.println(date);
        orderSettingDao.deletePastOrderData(date);
    }


}
